Skip to content

Handle bundles with no price in discount and savings - #621

Merged
shanerbaner82 merged 1 commit into
mainfrom
fix/bundle-null-price
Nov 25, 2026
Merged

shanerbaner82 merged 1 commit into
mainfrom
fix/bundle-null-price

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

A bundle with no price rows and a null legacy price column crashed /admin/plugin-bundles with a TypeError in getDiscountPercentFor(). Discount and savings now return 0 when there is no price.

Adds a regression test.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shanerbaner82
shanerbaner82 merged commit 51e5f68 into main Nov 25, 2026
3 checks passed
@shanerbaner82
shanerbaner82 deleted the fix/bundle-null-price branch November 25, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant